
package com.enjoyiot.module.bms.controller.admin.asset.vo;

import com.enjoyiot.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.enjoyiot.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 资产分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AssetPageReqVO extends PageParam {

    @Schema(description = "资产名称", example = "PCR荧光定量仪")
    private String assetName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] purchaseTime;

    @Schema(description = "安装位置")
    private String location;

    @Schema(description = "资产类型（0--般资产；1-设备）")
    private Integer type;

    @Schema(description = "资产状态（0-报废；1-正常）")
    private Integer status;

    @Schema(description = "标签码")
    private String assetSn;

    @Schema(description = "产品分类ID")
    private Long categoryId;
}
